const dodo = {
  name: 'dodo',
  health: 2000,
  fire: 10,
  attack( champion ) {
    champion.reduce( this.fire );
    console.log(this.name + ' attack ' + champion.name, 'fire:' + this.fire);
  },
  reduce(health) {
    this.health = this.health - health;
  },
  print(){
    console.log(this.health);
  },
};

const sufen = { // key : value
  name: 'sufen',
  health: 2000,
  fire: 8,
  attack(champion) {
    champion.reduce(this.fire);
    console.log(this.name + ' attack ' + champion.name, 'fire:' + this.fire);
  },
  reduce(health) {
    this.health = this.health - health;
  },
  print() {
    console.log(this.health);
  },
};

const dabao = {
  name: 'dabao',
  health: 2000,
  fire : 11,
  attack(champion) {
    champion.reduce(this.fire);
    console.log(this.name + ' attack ' + champion.name, 'fire:' + this.fire);
  },
  reduce(health) {
    this.health = this.health - health;
  },
  print() {
    console.log(this.health);
  },
};

dodo.attack(dabao);
dabao.print();
sufen.attack(dabao);
dabao.print();
